package User;

import Book.BookList;
import Interface.INterface;

/**
 * @Author YuanYuan
 * @Date 2022/5/18
 * @Time 10:47
 */
public abstract class User {
    private String name;
    public INterface[] iNterfaces;

    public abstract int menu();
    public User(String name) {
        this.name = name;
    }

    public String getName() {
        return name;
    }

    public void setName(String name) {
        this.name = name;
    }

    public void inplementInterface(int score, BookList bookList) {
        this.iNterfaces[score].work(bookList);
    }
}
